package com.cn.order.mapper;



import com.cn.dto.FindDto;
import com.cn.dto.OrderDTO;
import com.cn.dto.Paging;
import com.cn.order.entity.OVid;
import com.cn.order.entity.Order;
import feign.Param;

import java.util.List;

public interface OrderMapper {
    Order findByOrderNumber(String orderNumber);
    List<Order> findAll(FindDto findDto);
    int generateOrder(OrderDTO orderDTO);
    int delete(String orderNumber);
    int updateStatus(String orderNumber);
    int findByAdminId(String orderNumber);
    int findAdminIdByUser(int id);
    int updateAdminID(String orderNumber);
    int updateReason(String orderNumber);
    int updateAdminIdAndStatus(@Param("adminId") int adminId,@Param("orderNumber") String orderNumber);

    int findVersionForOrderNumber(String orderNumber);

    int addRelation(OVid oVid);

    int updateStatusCancel(String orderNumber);
}
